/*
* Copyright (c) 2016 . All Rights Reserved.
*/
package com.cgmnx.admin.web.controller.rbac;

import com.cgmnx.admin.web.controller.BaseAdminController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author: created  Date: 16/12/26 Time: 下午6:32
 * @version: 1.0
 */
@Slf4j
@Controller
public class RoleUiAdminController extends BaseAdminController {

    @RequestMapping("/cgmnx/role/index.html")
    public ModelAndView index() {
        ModelAndView modelAndView = new ModelAndView("pages/role/index");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }

    @RequestMapping("/cgmnx/role/add.html")
    public ModelAndView add() {
        ModelAndView modelAndView = new ModelAndView("pages/role/add");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }

    @RequestMapping("/cgmnx/role/relationUser.html")
    public ModelAndView relationUser() {
        ModelAndView modelAndView = new ModelAndView("pages/role/relationUser");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }
}